<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/updateGoods}" method="post" enctype="multipart/form-data">
    <input type="hidden" name="goodsId" th:value="${goods.goodsId}">
    商品：<input type="text" name="goodsName"  th:value="${goods.goodsName}"><br>
    价格：<input type="text" name="goodsPrice" th:value="${goods.goodsPrice}"><br>
    库存：<input type="text" name="number" th:value="${goods.number}"><br>
    <input type="file" name="photo"><br>
    <input type="submit" value="修改">
</form>
</body>
</html>